<div class="rand-products">
    <ul>
        <?php foreach ($products as $product): ?>
        <li>
        <?php if (isset($product->cover)): ?>
            <div class="pic"><a href="<?php echo $product->getUrl(); ?>"><?php echo $product->getPicture($product->cover, 'small'); ?></a></div>
        <?php endif; ?>
            <h3><a href="<?php echo $product->getUrl(); ?>"><?php echo $product->category->name; ?> <em><?php echo $product->model; ?></em></a></h3>
            <p><?php echo $product->os->name; ?></p>
            <p><?php echo $product->size; ?>" Capactive Screen</p>
        </li>
        <?php endforeach; ?>
    </ul>
</div>